package thread_order_print;

public class RunTest implements Runnable {
    PrintQueue ps;

    public RunTest(PrintQueue ps) {
        this.ps=ps;
    }
    @Override
    public void run() {
        try {
            while(true) {
                ps.printNum();
            }
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
